package net.lwf.hibernate.entity.worksheet;

public class WsType {
	
	private String type;
	private String typeDescription;
	private int worksheetCount = 0;
	
	public String getType() {
		return type;
	}
	
	public void setType(String type) {
		this.type = type;
	}
	
	public String getTypeDescription() {
		return typeDescription;
	}
	
	public void setTypeDescription(String typeDescription) {
		this.typeDescription = typeDescription;
	}

	public int getWorksheetCount() {
		return worksheetCount;
	}
	
	public void setWorksheetCount(int worksheetCount) {
		this.worksheetCount = worksheetCount;
	}
	
	public boolean equals(Object obj) {
		WsType wstype = (WsType) obj;
		//return type.equals(wstype.getType()) && typeDescription.equals(wstype.getTypeDescription()) && (worksheetCount == wstype.getWorksheetCount());
		return type.equals(wstype.getType()) && typeDescription.equals(wstype.getTypeDescription());
	}

	public int hashCode() {
		return (type + typeDescription).hashCode();
	}

}
